<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Models\MemberWithdrawLogs
 *
 * @property int $id
 * @property string $openid
 * @property float $price 提现金额，正数
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property string|null $deleted_at
 * @property-read \App\Models\Member $member
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\MemberWithdrawLogs onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberWithdrawLogs whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberWithdrawLogs whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberWithdrawLogs whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberWithdrawLogs whereOpenid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberWithdrawLogs wherePrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberWithdrawLogs whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Models\MemberWithdrawLogs withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Models\MemberWithdrawLogs withoutTrashed()
 * @mixin \Eloquent
 */
class MemberWithdrawLogs extends Model
{
    use SoftDeletes;

    public function member()
    {
        return $this->hasOne(Member::class, 'openid', 'openid');
    }
}
